<%-- 
    Document   : DeleteMF
    Created on : 2009-5-24, 2:33:03
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page language="java" import="java.sql.*, java.io.*, java.util.*, database.*" %>
<jsp:useBean id="con" class="database.DatabaseConnection"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <style type="text/css">
            <!--
            body {
                background-image: url(../../image/3110_background/backcolor3.jpg);
                background-repeat: repeat;
            }
            .STYLE1 {font-size: 14px}
            .STYLE2 {font-size: 16px}
            -->
        </style>
    </head>
    <body>
        <%
        int TF = Integer.parseInt(request.getParameter("TF"));
        int The_ID = Integer.parseInt(request.getParameter("ID"));

        if (TF == 0) {
        %>

        <h2>Are you sure ?The TF = <%=TF%> ans the ID = <%=The_ID%></h2>
        <input type="button" value="YES" target="mainFrame" onClick="window.location.href='DeleteMF.jsp?TF=1&ID=<%=The_ID%>'">
        <input type="button" value="NO&BACK" target="mainFrame" onClick="window.location.href='DeleteManufacturer.jsp'">

        <%        } else {
            boolean TD_delete = false;
            con.createConnection();
            TD_delete = con.DeleteMF(The_ID);
            if (TD_delete) {

        %>
        <h2>Finish Delete !</h2>
        <input type="button" value="Back" target="mainFrame" onClick="window.location.href='DeleteManufacturer.jsp'">
        <%       } else {

        %>
        <h2>Not Finish Delete ! Please send email to System Employee!!!!!!</h2>
        <input type="button" value="Back" target="mainFrame" onClick="window.location.href='DeleteManufacturer.jsp'">
        <%            }
        }
        %>
    </body>
</html>
